#define _CRT_SECURE_NO_WARNINGS
#include<iostream>
#include"UtilFunc.h"
#include"Common.h"
using namespace std;

void Test01()
{
	/*cout << "hello word" << endl;*/
	double num1 = 10;
	double num2 = 20;
	//swapNum(num1, num2);
	swapNum<double>(num1, num2);
}
void Test02()
{
	func<int>();//不指定类型T报错
}
void Test03()
{
	char arr[] = "cbaderfg";
	int arr2[] = { 5,3,1,2,4,6,8,7,9 };
	int len = sizeof(arr2) / sizeof(arr2[0]);
	MySort(arr2, len);
	SoutArr(arr2, len);
}
void Test04()
{
	int a = 10;
	int b = 23;
	char c = 'a';
	char d = 'b';
	cout <<(int)Add<int>(c,d) << endl;
}
int main()
{
	Test04();
	return 0;
}